package com.tedu.basic.Test;
//测试 Arrays工具类
import java.util.Arrays;

public class Test_Arrays {
    public static void main(String[] args) {
        m();
    }

    public static void m() {
        int[] a={1,2,3,4,5};

        int[] x= Arrays.copyOf(a,3);

        int[] y=Arrays.copyOf(a,10);

        int[] z=Arrays.copyOfRange(a,2,4);

        System.out.println(Arrays.toString(x));
        System.out.println(Arrays.toString(y));
        System.out.println(Arrays.toString(z));

    }
}
